package com.sanmubird.mywebframework.indicator.domain.ability;

import com.alibaba.fastjson.JSONObject;
import com.sanmubird.mywebframework.indicator.domain.service.IndicatorConfig;

/**
 * @author sam
 * @date 2021/9/27 10:52
 */
public interface IndicatorAbility {

    /**
     * 获取指标数据
     *
     * @param indicatorConfig indicatorConfig
     * @param queryParams     queryParams
     * @return JSONObject
     */
    JSONObject getIndicatorData(IndicatorConfig indicatorConfig, JSONObject queryParams);


    /**
     * 获取指标数据
     *
     * @param indicatorConfig indicatorConfig
     * @param queryParams     queryParams
     * @return JSONObject
     */
    JSONObject getIndicatorData(String variableCode, JSONObject queryParams);
}
